﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Industry.Services.ExternalService.Dto.Input;
using ZhonTai.Industry.Services.ExternalService.Dto.Output;
using ZhonTai.Industry.Services.WorkStationRecord.Dto.Output;

namespace ZhonTai.Industry.Services.ExternalService
{
    /// <summary>
    /// 供外部无权限调用服务
    /// </summary>
    public interface IExternalService
    {
        #region 数据接收

        /// <summary>
        /// 接收外来加工数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task ReceiveWorkParamAsync(IEnumerable<ReceiveWorkParamAddInput> input);

        /// <summary>
        /// 接收清洗篮绑定
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task AddLotBasketCodeAsync(LotBasketCodeAddInput input);

        #endregion 数据接收

        #region 数据发送

        /// <summary>
        /// 发送清洗篮批次绑定数据
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<LotBasketCodeListOutput>> SendLotBasketCodeListAsync();

        /// <summary>
        /// 发送今日加工详情
        /// </summary>
        /// <returns></returns>
        Task<ProcessDataResultOutput> SendProductLineOverViewAsync();

        /// <summary>
        /// 发送产品下线记录
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<ProductOfflineOutput>> SendProductOfflineRecordAsync();

        /// <summary>
        /// 发送生产展示信息
        /// </summary>
        /// <returns></returns>
        Task<ProductionShowOutput> SendProductionShowAsync();

        #endregion 数据发送
    }
}